package com.sg.dto.biz.app.common;

import com.sg.common.dto.BaseDto;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;
import java.util.Objects;

/**
 * @desc ObjectiveGradeScoreDto
 * @使用场景
 */
@Data
public class ObjectiveGradeScoreDto extends BaseDto implements Serializable {

    /**
     * 成果等级ID
     */
    @ApiModelProperty("成果等级ID")
    private String achievementGradeId;

    /**
     * 成果等级匹配分数
     */
    @ApiModelProperty("成果等级匹配分数")
    private Double achievementLevelMatchScore;

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;
        if (!super.equals(o)) return false;
        ObjectiveGradeScoreDto that = (ObjectiveGradeScoreDto) o;
        return achievementGradeId == that.achievementGradeId && achievementLevelMatchScore == that.achievementLevelMatchScore;
    }

    @Override
    public int hashCode() {
        return Objects.hash(super.hashCode(), achievementGradeId, achievementLevelMatchScore);
    }

}
